import request from '@/utils/request'

/**
 * 查询训练营模式数据列表
 * @param {*} data
 */
export function adminTrainingListAPI(data) {
  return request({
    url: `adminTraining/queryPageList`,
    method: 'post',
    data: data,
    headers: {
        'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
/**
 * 设置关闭/开启训练营模式
 * @param {*} data
 */
export function adminTrainingUpdateAPI(data) {
  return request({
    url: `adminTraining/update`,
    method: 'post',
    data: data,
    headers: {
        'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
/**
 * 查询训练营模式开启状态
 * @param {*} data
 */
export function queryTrainingStatusAPI(data) {
  return request({
    url: `adminTraining/queryTrainingStatus`,
    method: 'get',
    headers: {
        'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
/**
 * 线索查询课程讲师绑定
 * @param {*} data
 */
export function queryTeacherListForLeadsAPI() {
  return request({
    url: `adminUser/queryTeacherListForLeads`,
    method: 'post'
  })
}
/**
 * 查询线索训练营字段是否必填
 * @param {*} data
 */
export function queryLeadsFieldForTrainingAPI() {
  return request({
    url: `crmLeads/queryLeadsFieldForTraining`,
    method: 'post'
  })
}